﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="JieBooLaw.WebAdmin.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>System Login</title>
    <ext:ResourceManager ID="ResourceManager1" runat="server" />
</head>
<body>
    <form id="form1" runat="server">
    <ext:Window ID="Window1" runat="server" Closable="false" Resizable="false" AutoHeight="true"
        Icon="Lock" Title="System Login" Draggable="false" Width="340" Modal="true" Padding="5"
        IDMode="Static">
        <Items>
            <ext:FormPanel ID="FormPanel1" Collapsible="true" Header="false" Icon="PageAdd" runat="server"
                MonitorValid="true" ButtonAlign="Right" Padding="10" Layout="Form" Border="false">
                <Items>
                    <ext:TextField ID="txtUserName" MsgTarget="Side" IDMode="Static" runat="server" FieldLabel="Username"
                        AllowBlank="false" BlankText="Please enter your username!" Width="174" />
                    <ext:TextField ID="txtPassword" MsgTarget="Side" IDMode="Static" runat="server" FieldLabel="Password"
                        AllowBlank="false" BlankText="Please provide your password!" InputType="Password"
                        Width="174" />
                </Items>
                <Buttons>
                    <ext:Button ID="btnSubmit" runat="server" Text="Sign in" CausesValidation="true"
                        Icon="Accept">
                        <DirectEvents>
                            <Click OnEvent="btnSubmit_Click">
                                <EventMask ShowMask="true" Msg="Verifying..." MinDelay="500" />
                            </Click>
                        </DirectEvents>
                    </ext:Button>
                </Buttons>
                <Listeners>
                    <ClientValidation Handler="#{btnSubmit}.setDisabled(!valid);" />
                </Listeners>
            </ext:FormPanel>
        </Items>
    </ext:Window>
    </form>
</body>
</html>
